textview: Avoid relocating adjustments on ::size-allocate while these are animating
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 21 Jul 2014 19:16:32 +0000 (21:16 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Aug 2014 18:12:47 +0000 (20:12 +0200)
commit9d7f1caca7073cdf4af3bd85b24dbe0209abdde2
tree1a23a230ad217e15dc4b2f26ea468c75728a5b34
parent2bf368c9e329d4f0ae5cfa64afe91c7a27fe37c7
textview: Avoid relocating adjustments on ::size-allocate while these are animating

An animation may be scheduled while the textview content changed in size, so the resize
queued would just unset the animation and set the adjusments with a current value,
defeating gtk_text_view_scroll_to_iter(). In this case, just avoid the adjustment change,
as there is a target value on the way.

https://bugzilla.gnome.org/show_bug.cgi?id=733406
gtk/gtkadjustment.c
gtk/gtkadjustmentprivate.h
gtk/gtktextview.c